.minesweeper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    padding: 10px;
    background-color: #00adb5;
    box-shadow: 2px 2px 10px 0 #cccccc;
}

.minesweeper .minesweeper-header {
    display: flex;
    width: calc(100% - 4px);
    height: 32px;
    margin-bottom: 4px;
}

.minesweeper .minesweeper-header > div {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    box-shadow: inset 1px 1px 4px 0 #cccccc;
}

.minesweeper .minesweeper-header > div::before {
    content: '';
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-size: cover;
}

.minesweeper .minesweeper-header > div + div {
    margin-left: 4px;
}

.minesweeper .minesweeper-header .flag::before {
    background-image: url('./imgs/img_flag.png');
}

.minesweeper .minesweeper-header .mine::before {
    background-image: url('./imgs/img_mine.png');
}

.minesweeper .minesweeper-row {
    display: flex;
}

.minesweeper .minesweeper-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 2px;
    background-color: #eeeeee;
    box-sizing: border-box;
    border: 5px solid #efefef;
    border-right-color: #dddddd;
    border-bottom-color: #d0d0d0;
    cursor: pointer;
    user-select: none;
}

.minesweeper .minesweeper-cell:not(.checked):hover {
    background-color: #dddddd;
}

.minesweeper .minesweeper-cell.checked {
    border: 0;
    color: #eeeeee;
    background-color: #393e46;
    cursor: default;
}

.minesweeper .minesweeper-cell.is-flag {
    background-image: url('./imgs/img_flag.png');
    background-size: cover;
}

.minesweeper .minesweeper-cell.is-mine.is-bomb {
    background-image: url('./imgs/img_bomb.png');
    background-size: cover;
}

.minesweeper .minesweeper-cell.is-mine {
    background-image: url('./imgs/img_mine.png');
    background-size: cover;
}